<template>
  <div id="app">
    <div class="player-bg"></div>
    <div class="player-mask"></div>
    <Header v-show="showIs==0"></Header>
    <index v-show="showIs==0"></index>
    <Content v-show="showIs==0"></Content>
    <player id="player"></player>
    <Login v-show="showIs"/>
    <video src=""></video>

  </div>
</template>

<script>
import Header from './components/Header'
import index from './components/index'
import Content from './components/Content'
import Login from './components/Login'
import player from './components/player'

export default {
  watch:{
  // showIs(){
  //   console.log(document.getElementById('#player').style.opacity);
  //   document.getElementById('#player');
  //   player.style.opacity=100;
  // }
},
  data(){
          return{
              showIs:1,
          }
      },
  components:{
    Header,
    index,
    Content,
    Login,
    player
  },
}

</script>

<style>
body,
  html {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
  }

  /*遮罩*/
  .player-mask,
  .player-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
  }

  .player-bg {
    background: url('../src/assets/bg-2.jpg');
    z-index: -2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    filter: blur(12px);
    opacity: 0.7;
    transition: all 0.8s;
    transform: scale(1.1);
  }

  .player-mask {
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.4);
  }

  .player-bg {
    z-index: -2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    filter: blur(12px);
    opacity: 0.7;
    transition: all 0.8s;
    transform: scale(1.1);
  }

  #player{
    opacity: 100;
  }
  ::-webkit-scrollbar{
    width: ;
  }
</style>